Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations update #1545

Merged
merged 23 commits into from
Nov 22, 2024
Merged

Translations update #1545

merged 23 commits into from
Nov 22, 2024

Conversation

emlys
Copy link
Member

@emlys emlys commented Mar 26, 2024

Description

Fixes #1623

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
  • Updated the user's guide (if needed)
  • Tested the Workbench UI (if relevant)

@emlys emlys requested a review from dcdenu4 November 21, 2024 21:21
@emlys emlys marked this pull request as ready for review November 21, 2024 21:21
Copy link
Member

@dcdenu4 dcdenu4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @emlys , just a few quick questions and comments.


6. Replace `src/main/i18n/$LL.[json,po]` and `src/renderer/i18n/$LL.json` with the updated versions received from the translator
```

7. Commit the changes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like step 6 was removed and that this should be the new step 6.

@@ -2,3 +2,4 @@ Sphinx>=1.3.1,!=1.7.1
sphinx-rtd-theme
sphinx-intl
sphinx-reredirects
pyyaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What relies on the pyyaml dependency?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -196,11 +228,11 @@ class DataDownloadModal extends React.Component {
)}
/>
<Form.Check.Label>
{modelName}
{displayNames[modelName]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch to include translations for these. I'm thinking about having to remember to update this list manually if model names change or are added / removed. Since we're using modelName here, is it possible to somehow programmatically wrap modelName with the t designation?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`${t(modelName)}`

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, t(...) should always go around a string literal because it's used to extract strings for translation. If it goes around a variable, there's no way to know what strings need to be translated.

@emlys emlys requested a review from dcdenu4 November 22, 2024 00:07
Copy link
Member

@dcdenu4 dcdenu4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @emlys , looks like there's just a conflict in HISTORY to fix and it should be good!

@emlys emlys requested a review from dcdenu4 November 22, 2024 18:17
@dcdenu4 dcdenu4 merged commit 4aa3218 into natcap:main Nov 22, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spanish and Chinese translation update
2 participants